var userInfo = new Vue({
    el: '#personal-info',
    data: {
        user: {
            title: '渣渣睿的全栈之路',
            year: '2015',
            name: '陈睿',
            mail: 'i@corechan.cn',
            nativeplace: '武汉',
            gender: '男',
            birthday: '1997-06-10',
            sign: '这是个个性签名，说出来你可能不信呢',
            myIcon: 'images/user.png'
        }
    },
    methods: {
        getUserInfo: function () {
            var self = this;
            var url=window.location.search;
            $.get("/myCenter/user"+url, function (data) {
                self.user = data.user;
                console.log(data.user);
                console.log(self.user);
            });
        }
    }
});
var bloglist = new Vue({
    el: '#blog-list',
    data: {
        blogs: []
    },
    methods: {
        getBlogList: function () {
            var self = this;
            $.get("/art/getarticlelist", function (data) {
                self.blogs = data.articles;
            });
        }
    }
});
userInfo.getUserInfo();
bloglist.getBlogList();